package com.fauks.dubbo.service.impl;

import com.fauks.dubbo.beans.OrderAddress;
import com.fauks.dubbo.service.OrderService;

import java.util.ArrayList;
import java.util.List;

public class OrderServiceImpl implements OrderService {

    @Override
    public List<OrderAddress> getAddress() {
        List<OrderAddress> addressList = new ArrayList<>();
        addressList.add(new OrderAddress(1, "青岛"));
        addressList.add(new OrderAddress(2, "威海"));
        addressList.add(new OrderAddress(3, "烟台"));
        return addressList;
    }

    @Override
    public OrderAddress getArressById(int id) {
        return new OrderAddress(id, "北京");
    }
}
